package com.dc.project.demo.vo;

import com.dc.base.common.enumeration.MsgProcessStatusEnum;
import com.dc.base.common.enumeration.MsgStatusEnum;
import com.dc.base.dynamic.constant.DynamicMsgProcessStatusEnum;
import com.dc.common.serializer.EnumIntegerCodeSerialize;
import com.dc.common.serializer.EnumSerializeAnn;
import com.dc.project.demo.po.PmAttribute;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 属性详情
 *
 * @author Enzo
 * @date 2023/4/28
 **/

@ApiModel(value = "属性详情")
@Data
public class PmAttributeVO extends PmAttribute implements Serializable {
    @EnumSerializeAnn(using = MsgStatusEnum.class)
    @JsonSerialize(using = EnumIntegerCodeSerialize.class)
    @ApiModelProperty(value = "消息状态")
    private Integer msgStatus;

    @EnumSerializeAnn(using = MsgProcessStatusEnum.class)
    @JsonSerialize(using = EnumIntegerCodeSerialize.class)
    @ApiModelProperty(value = "流程状态")
    private Integer processStatus;
    @EnumSerializeAnn(using = DynamicMsgProcessStatusEnum.class)
    @JsonSerialize(using = EnumIntegerCodeSerialize.class)
    @ApiModelProperty(value = "当前审批人流程状态")
    private Integer processUserStatus;
}
